package Adapter;

public class Wash implements ThreeElectricOutlet{
    String name;
    public Wash(){
        name="滚筒洗衣机";
    }
    public Wash(String name){
        this.name=name;
    }

    public void connectElectricCurrnent(){
        turnOn();
    }

    private void turnOn() {
        System.out.println(name+"开始洗衣服。");
    }
}
